package com.example.audiostreaming.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.example.audiostreaming.Bean.UserBean;
import com.example.audiostreaming.R;
import com.example.audiostreaming.base.BaseActivity;
import com.example.audiostreaming.implement.ImplPlayerLogic;
import com.example.audiostreaming.utils.UtilUser;

public class MeActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_me);
        initView();
    }

    private void initView() {
        initNavBar(true,"个人中心");
        TextView phone = findViewById(R.id.phone);
        TextView name = findViewById(R.id.name);
        UserBean userBean = UserBean.getUserBean();


        phone.setText(userBean.getTelephone());
        name.setText(userBean.getName());
    }


    /**
     * 修改密码
     * @param view
     */
    public void onChangeCLick(View view) {
        Intent intent = new Intent(this, ChangePasswordActivity.class);
        startActivity(intent);
    }

    /**
     * 退出登录
     * @param view
     */
    public void onLoginOutClick(View view) {
        UtilUser.logicOut(this);

    }
}
